<?php

/**
 * A Point on the canvas. Can be used by drawing certain filters.
 *
 * @version $Revision v1.00$
 * @author Bryan Spirit & Mark Kazemier
 */
class Point
{
    private $m_iX;
    private $m_iY;
    
    /**
     * Constructs a point with as x coordinate $iX and as y coordinate $iY
     *
     * @param integer The x coordinate of the point
     * @param integer The y coordinate of the point
     */
    public function __construct($iX, $iY)
    {
        $this->setX($iX);
        $this->setY($iY);
    }
    
    /**
     * Method to set the x coordinate of the point
     *
     * @param integer The new x coordinate of the point
     */
    public function setX($iX)
    {
        $this->m_iX = $iX;
    }
    
    /**
     * Method to set the y coordinate of the point
     *
     * @param integer The new y coordinate of the point
     */
    public function setY($iY)
    {
        $this->m_iY = $iY;
    }
    
    /**
     * Method to get the x coordinate of the point
     *
     * @return integer The x coordinate of the point
     */
    public function getX()
    {
        return $this->m_iX;
    }
    
    /**
     * Method to get the y coordinate of the point
     *
     * @return integer y coordinate of the point
     */
    public function getY()
    {
        return $this->m_iY;
    }
}
